index.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 8
rs 9.4285
nop 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A index.js ➔ ... ➔ ??? 0 6 2
1
'use strict'
2
3
import fs from 'fs'
4
5
export default function (server) {
6
  fs.readdirSync(__dirname).forEach((file) => {
7
    if (file.indexOf('index') === -1) {
8
      const router = require(`./${file}`)
9
      router.default(server)
10
    }
11
  })
12
}
13